package com.thysdy.flowable.flowable;

import org.flowable.engine.delegate.DelegateExecution;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Map;

@Component(value = "customConditions")
public class CustomConditions implements Serializable {
    public boolean isOver(DelegateExecution execution) {
        Map<String, Object> variables = execution.getVariables();
        if (!(Boolean) variables.get("agree")){
            return true;
        }
        return false;
    }
}
